/**
 * 
 */
package com.feeyin.radar.crm.model;

import java.util.List;

/**
 * @author E547415
 *
 */
public class ProcessGroup 
{
	private Integer id;
	private String name;
	
	private List<Process> processList;
	
	private Integer beginProcessId;
	private String beginProcessName;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Process> getProcessList() {
		return processList;
	}
	public void setProcessList(List<Process> processList) {
		this.processList = processList;
	}
	
	public String getBeginProcessName()
	{
		if(processList != null && !processList.isEmpty())
			beginProcessName = processList.get(0).getName();
		else
			beginProcessName = "";
		
		return beginProcessName;
	}
	public Integer getBeginProcessId()
	{
		if(processList != null && !processList.isEmpty())
			beginProcessId = processList.get(0).getId();
		else
			beginProcessId = 0;
		
		return beginProcessId;
	}
}
